﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VkSample113;

public class TreeLeavesData
{
    public float[] Data { get; set; }
    public int DataBytes { get; set; }
    public int VCount { get; set; }

    public void GenVertexData(float width, float height, float absolute_height)
    {
		VCount = 6;//设置顶点个数
		DataBytes = VCount * 5 * sizeof(float);
		Data = new float[6 * 5]
		{
			0,0.3125f*height,0, 1,0,
			0,-0.6875f*height,0, 1,1,
			width,0.3125f*height,0,0,0,
			width,0.3125f*height,0, 0,0,
			0,-0.6875f*height,0,    1,1,
			width,-0.6875f*height,0,    0,1,
		};
	}
}
